package com.atguigu.gulimall.member.service;

import com.atguigu.gulimall.member.exception.PhoneExistException;
import com.atguigu.gulimall.member.exception.UserNameExistException;
import com.atguigu.gulimall.member.vo.SociaUser;
import com.atguigu.gulimall.member.vo.UserLoginVo;
import com.atguigu.gulimall.member.vo.UserRegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 *   Ա
 *
 * @author wansheng
 * @email 2060054181@gmail.com
 * @date 2024-10-13 16:49:07
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(UserRegisterVo userRegisterVo);
    void checkUserUnique(String userName) throws UserNameExistException;
    void checkPhoneUnique(String Phone) throws PhoneExistException;

    MemberEntity login(UserLoginVo userLoginVo);

    MemberEntity loginbygitee(SociaUser sociaUser) throws Exception;
}

